#ifndef EBOOKCOMM_H
#define EBOOKCOMM_H

#include "SQLSystem.h"
#include "Command.h"
#include "Helper.h"
#include "InsertCommand.h"
#include "DeleteCommand.h"
#include "SelectCommand.h"
#include "VarcharCell.h"
#include "Constants.h"

#include <fstream>
#include <boost/tokenizer.hpp>

using namespace boost;
using std::ifstream;

class Cell;

class EbookCommand :
	public Command
{
public:
	EbookCommand(SQLSystem* sql);
	~EbookCommand(void);
	virtual int execute(const string &str);
	int insertEbook(const string &str);
	int deleteEbook(const string &str);
	int searchEbook(const string &str);
	void search(const string &fileName,const string &content);
	int sortEbook(const string &str);
	Helper* helper;
};

#endif
